<%@page import="java.util.ArrayList"%>
<%@page import="com.naszetatry.controller.UsersSearchController"%>
<%@ include file= "/html/header.html" %>
<div id="main">
	<% 
	if(UserController.isLogged(session)) {	
	%>
	<form action="usersSearch">
       wyszukaj: <input type="text" name="login"/>
       <input type="submit" value="szukaj"/>
    </form>
    <%
    	ArrayList<String> users = UsersSearchController.getUsers(request);
	    int i = 0;
    	for(String u : users) {
	    	i++;
	    %>
	    	<a href = "main"><%=i+". "+ u %></a><br>
    	<% 	
    	}
    }
	else
		out.println(Message.NOTLOGGED);
	%>
</div>

<%@ include file= "right.jsp" %>

<%@ include file= "/html/footer.html" %>
